.wrap {
  display: flex;
  height: 600px;
  max-height: 80vh;
}

.groups {
  display: flex;
  flex-direction: column;
  width: 300px;
}
.groups > header {
  padding-bottom: 12px;
  position: relative;
  .tag-trigger {
    color: #777;
    cursor: pointer;
    font-size: 16px;
    position: absolute;
    right: 6px;
    top: 8px;
  }
  .tags {
    padding-top: 4px;
    :global(.ant-tag) {
      margin-top: 4px;
      margin-right: 6px;
      span:first-child {
        display: inline-block;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: middle;
      }
    }
  }
  .type-filter {
    margin-top: 12px;
  }
}
.groups > main {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  padding-top: 6px;
  header {
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 4px;
    padding: 0 6px 4px 6px;
  }
  .list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0;
  }
}

.choosed-group-item,
.group-item {
  display: flex;
  align-items: center;
  padding: 12px 6px;
  &:hover {
    background-color: #fafafa;
  }
  img {
    border-radius: 2px;
    height: 45px;
    margin: 0 6px;
    width: 45px;
  }
  .info {
    overflow: hidden;
  }
  .group-name,
  .qywx-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .group-name-wrap {
    display: flex;
  }
  :global(.ant-tag) {
    margin-left: -8px;
    transform-origin: center right;
    transform: scale(0.8);
  }
  .group-name {
    padding-right: 4px;
  }
  .qywx-name {
    color: #1890ff;
    font-size: 12px;
    margin-top: 4px;
  }
}

.group-item {
  cursor: pointer;
}

.choosed {
  flex: 1;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  header {
    color: #777;
    padding: 6px 12px;
  }
  .list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0;
    margin-bottom: 12px;
  }
  footer {
    text-align: right;
    button {
      margin-left: 12px;
    }
  }
}
.choosed-group-item {
  .info {
    flex: 1;
  }
  :global(.anticon) {
    font-size: 18px;
    color: #ff4d4f;
  }
}
